trivial-httpd: Add --force-range-requests option to force range requests
authorJeremy Whiting <jpwhiting@kde.org>
Wed, 14 Aug 2013 20:08:25 +0000 (14:08 -0600)
committerColin Walters <walters@verbum.org>
Wed, 14 Aug 2013 21:33:23 +0000 (17:33 -0400)
commit71f6f10cd282118b41516260dedce9b550e257b3
treee02163db3445fc812f7be03e81508a72ddfc1da1
parentf68ac018c29d43a2af140ad3f52c415c708f60f5
trivial-httpd: Add --force-range-requests option to force range requests

This will be used to test resuming interrupted downloads for
ostree-pull.

With this option, if a whole file is asked for, only half of the file
is given.  Then the client should retry with a range request, and
we'll give them the other half.

https://bugzilla.gnome.org/show_bug.cgi?id=705925
src/ostree/ot-builtin-trivial-httpd.c